<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>订单信息</legend>
</fieldset>
<table class="layui-table">
    <tbody>
      <tr>
        <td width="8%">购买人</td><td><{$info['name']}></td>
        <td width="8%">产品名称</td><td><{$info['title']}></td>
        <td width="8%">收货人</td><td><{$info['sh_name']}></td>
      </tr>
      <tr>
        <td>支付金额</td><td><{$info['rmb']}></td>
        <td>产品金额</td><td><{$info['rmb']}></td>
        <td>收货地址</td><td><{$info['sh_address']}></td>
      </tr>
      <tr>
        <td>支付状态</td><td><{:c('type.pay_status',$info['pay_status'])}></td>
        <td>产品数量</td><td><{$info['title']}></td>
        <td>收货电话</td><td><{$info['sh_phone']}></td>
      </tr>
      <tr>
        <td>购买时间</td><td><{:com_formate_time($info['create_time'])}></td>
        <td>产品件数</td><td><{$info['nums']}></td>
        <td>发货状态</td><td><{:c('type.fahuo_status',$info['fahuo_status'])}></td>
      </tr>
    </tbody>
  </table>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>产品清单</legend>
</fieldset>
<table class="layui-table">
    <thead>
      <tr>
        <th>图片</th>
        <th>名称</th>
        <th>规格</th>
        <th>单价</th>
        <th>数量</th>
        <th>是否申请发货</th>
        <th>发货状态</th>
      </tr>
    </thead>
    <tbody>
      <{volist name='detail' id='v'}>
        <tr>
          <td><img src="<{$v['pic']}>" height="50"></td>
          <td><{$v['title']}></td>
          <td><{$v['spec']}></td>
          <td><{$v['price']}></td>
          <td><{$v['num']}></td>
          <td id='detail_<{$v['id']}>'><{if $v['is_sq']}>已申请发货<{else}>
            <a class="layui-btn layui-btn-mini layui-btn-danger" href='javascript:
                    layui.layer.confirm("您确定要申请发货？",{"icon":3},function(){
                      $.ajax({
                            url: "/ordergoods/sqsend/id/<{$v['id']}>",
                            dataType: "json",
                            success: function(rs) {
                                _action(rs);
                            },
                            error:function(){
                                layer.msg("服务器开小差!");
                            }
                        });
                    });'>申请发货</a>
            <{/if}></td>
          <td><{if $v['status']}>已发货<{else}>未发货<{/if}></td>
        </tr>
      <{/volist}>
    </tbody>
  </table>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>支付数据</legend>
</fieldset>
<table class="layui-table">
    <thead>
      <tr>
        <th>支付方式</th>
        <th>支付编号</th>
        <th>支付金额</th>
        <th>支付状态</th>
        <th>订单状态</th>
        <th>创建时间</th>
        <th>确认时间</th>
      </tr>
    </thead>
    <tbody>
      <{volist name='pay_data' id='v'}>
        <tr>
          <td><{$v['title']}></td>
          <td><{$v['pay_no']}></td>
          <td><{$v['money']}></td>
          <td><{:c('type.pay_status',$v['pay_status'])}></td>
          <td><{:c('type.order_goods_status',$v['table_status'])}></td>
          <td><{:com_formate_time($v['create_time'])}></td>
          <td><{:com_formate_time($v['update_time'])}></td>
        </tr>
      <{/volist}>
    </tbody>
  </table>
  <script>
  function hide(rs){
      $("#detail_"+rs.data).text('已申请发货');
  }
  </script>
